package com.zhiyou100.crm.service;

import com.zhiyou100.crm.pojo.User;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
@Repository
public interface UserService {
    public abstract List<User> queryUserByName(User user) throws IOException;

    /**
     * 查询所有学生信息
     */
    public abstract List<User> queryAllUser() throws IOException;

    /**
     *根据id修改信息
     */
    public abstract boolean updateUser(User user) throws IOException;

    /**
     * 增加
     */
    public  abstract int addUser(User user) throws IOException;
    /**
     * 删除
     */
    public abstract  boolean deleteUser(int u_id) throws IOException;
}
